<?php
/**
 * Created by PhpStorm.
 * User: 86158
 * Date: 2021/7/10
 * Time: 0:51
 */

namespace App\Models\exams;


use App\Models\Model;

class ExamQuestion extends Model
{
    protected $fillable = [
        'exam_id',
        'question_id'
    ];

    public function question()
    {
        return $this->hasOne(Question::class,'id','question_id');
    }

    public function exam()
    {
        return $this->hasOne(Exam::class,'id','exam_id');
    }
}